import 'dart:convert';

import 'package:json_annotation/json_annotation.dart';

part 'ConnectModel.g.dart';

@JsonSerializable()
class ConnectModel {
  @JsonKey(name: 'id')
  int _id;

  ConnectModel({int? id})
      : _id = id ?? 0;

  int get id => _id;

  set id(int value) {
    _id = value;
  }

  ConnectModel.fromJson(Map<String, dynamic> json) : _id = json['id'];

  Map<String, dynamic> toJson() => _$ConnectModelToJson(this);
}
